GDK W32: Init display scale to the global Windows scale, not 1
authorРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 24 Mar 2018 10:05:34 +0000 (10:05 +0000)
committerРуслан Ижбулатов <lrn1986@gmail.com>
Sat, 24 Mar 2018 10:09:54 +0000 (10:09 +0000)
commit6b50788901a6053e588c7f41ef358b768eca8222
tree35421875b54368a7df7527a43e1b5770f5e7ad43
parent6bdb004dfdacaa4e26dc0111a4fcf13dce11b690
GDK W32: Init display scale to the global Windows scale, not 1

This affects gdk_device_query_state() for the virtual device. It has
no window, and is forced to query the display itself, and display
defaults its scale to 1 even for HiDPI desktops. Use the same
"query scale of a NULL monitor" trick that we use in other places
to get the global desktop scale.

https://bugzilla.gnome.org/show_bug.cgi?id=773299
gdk/win32/gdkdisplay-win32.c